phph get server protocol

131

phph get server protocol -

$protocol = stripos($_SERVER['SERVER_PROTOCOL'],'https') === 0 ? 'https://' : 'http://';

Comments

Submit
0 Comments